home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / TXT / DMA.TXT < prev    next >
Text File  |  1997-03-14  |  908b  |  31 lines

  1. The DMA funcs have changed a little.
  2.  
  3. A struct is used to pass info back/forth with the DMA alloc funcs.
  4. This was used to make it possible to pass back more info and because QLIB
  5. will someday support VDS which will need this struct too.
  6.  
  7. The struct is as follows:
  8.  
  9. struct dma_s {
  10.   dword siz;
  11.   dword off;
  12.   word sel;
  13.   word id;
  14.   dword phys;
  15.   word dmach;
  16. };  
  17.  
  18. Functions:
  19. dma_alloc64(struct dma_s *)
  20. dma_alloc128(struct dma_s *)
  21. dma_free(struct dma_s *)
  22.  
  23. Before calling dma_alloc64() or dma_alloc128() you must set 'siz' to the
  24. size of the buffer you need (in bytes) and set 'dmach' to what ever channel
  25. the buffer will be used for.  And if the call is successful then 'phys' will
  26. hold the physical address of the buffer.  You should ignore all other fields.
  27. Although currently QLIB's DMA alloc funcs do not use 'dmach' I suggest
  28. you use them if/when QLIB does support VDS.
  29.  
  30.  
  31.